reftests: Add test for empty grid with spacing
authorBenjamin Otte <otte@redhat.com>
Thu, 29 Dec 2011 09:02:54 +0000 (10:02 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 29 Dec 2011 09:03:59 +0000 (10:03 +0100)
This used to crash.

https://bugzilla.gnome.org/show_bug.cgi?id=660139

tests/reftests/Makefile.am
tests/reftests/grid-empty-with-spacing.ref.ui [new file with mode: 0644]
tests/reftests/grid-empty-with-spacing.ui [new file with mode: 0644]

index 2e0624f09766f907f055921ca535d04f782583db..d795c6d656e1d84400ee9eef44abf04093f4f4a3 100644 (file)
@@ -107,6 +107,8 @@ EXTRA_DIST += \
        entry-progress-coloring.ref.ui \
        entry-progress-coloring.ui \
        green-20x20.png \
+       grid-empty-with-spacing.ref.ui \
+       grid-empty-with-spacing.ui \
        grid-expand.css \
        grid-expand.ref.ui \
        grid-expand.ui \
diff --git a/tests/reftests/grid-empty-with-spacing.ref.ui b/tests/reftests/grid-empty-with-spacing.ref.ui
new file mode 100644 (file)
index 0000000..dccd1b8
--- /dev/null
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkGrid" id="grid1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="row_spacing">5</property>
+        <property name="column_spacing">5</property>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/tests/reftests/grid-empty-with-spacing.ui b/tests/reftests/grid-empty-with-spacing.ui
new file mode 100644 (file)
index 0000000..3598fc7
--- /dev/null
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+  <!-- interface-requires gtk+ 3.0 -->
+  <object class="GtkWindow" id="window1">
+    <property name="can_focus">False</property>
+    <property name="type">popup</property>
+    <child>
+      <object class="GtkGrid" id="grid1">
+        <property name="visible">True</property>
+        <property name="can_focus">False</property>
+        <property name="row_spacing">5</property>
+        <property name="column_spacing">5</property>
+        <child>
+          <object class="GtkLabel" id="label1">
+            <property name="can_focus">False</property>
+            <property name="label" translatable="yes">invisible</property>
+          </object>
+          <packing>
+            <property name="left_attach">0</property>
+            <property name="top_attach">0</property>
+            <property name="width">1</property>
+            <property name="height">1</property>
+          </packing>
+        </child>
+      </object>
+    </child>
+  </object>
+</interface>